#ifndef __PORT_H__
#define __PORT_H__

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>

#include "stm32f10x.h"
#include "basic_types.h"

#include "app_config.h"
#include "uart.h"
#include "systick.h"
#include "system.h"
#include "task_console.h"
#include "task_invensense.h"

#include "i2c.h"
#include "exti.h"
#include "timestamp.h"

int inven_putc ( int ch );      // Primary UART for QUAT/ACCEL/GYRO data
int inven_my_putc(int ch );

unsigned long Sensors_I2C_WriteRegister(unsigned char slave_addr, unsigned char reg_addr,unsigned char length, unsigned char const *data);
unsigned long Sensors_I2C_ReadRegister(unsigned char slave_addr, unsigned char reg_addr,unsigned char length, unsigned char *data);
int get_tick_count(unsigned long *count);
void mdelay(unsigned long num_ms);

#endif // __PORT_H__

